package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.core.example.BaseExample.E_ID;
import static org.jsola.core.example.BaseExample.M_ID_NOT_NULL;
import static org.jsola.core.example.BaseExample.N_ID;
import static org.jsola.hr.example.OnJobRecordExample.E_COMPANY_ID;
import static org.jsola.hr.example.OnJobRecordExample.E_EMP_ID;
import static org.jsola.hr.example.OnJobRecordExample.E_JOIN_DATE;
import static org.jsola.hr.example.OnJobRecordExample.E_LEAVE_DATE;
import static org.jsola.hr.example.OnJobRecordExample.E_TURN_STRAIGHT_DATE;
import static org.jsola.hr.example.OnJobRecordExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.OnJobRecordExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.OnJobRecordExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.OnJobRecordExample.M_JOIN_DATE_NOT_NULL;
import static org.jsola.hr.example.OnJobRecordExample.N_COMPANY_ID;
import static org.jsola.hr.example.OnJobRecordExample.N_EMP_ID;
import static org.jsola.hr.example.OnJobRecordExample.N_JOIN_DATE;
import static org.jsola.hr.example.OnJobRecordExample.N_LEAVE_DATE;
import static org.jsola.hr.example.OnJobRecordExample.N_TURN_STRAIGHT_DATE;

/**
 * 在职记录表
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "修改【在职记录表】的参数")
@Data
public class OnJobRecordUpdateDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_ID, example = E_ID, required = true)
    @NotNull(message = M_ID_NOT_NULL)
    private String id;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID, required = true)
    @NotNull(message = M_COMPANY_ID_NOT_NULL)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;

    @ApiModelProperty(notes = N_JOIN_DATE, example = E_JOIN_DATE, required = true)
    @NotNull(message = M_JOIN_DATE_NOT_NULL)
    private Date joinDate;

    @ApiModelProperty(notes = N_TURN_STRAIGHT_DATE, example = E_TURN_STRAIGHT_DATE)
    private Date turnStraightDate;

    @ApiModelProperty(notes = N_LEAVE_DATE, example = E_LEAVE_DATE)
    private Date leaveDate;


}

